import request from '@/utils/request'

export function detail(orderSn) {
  return request({
    method: 'get',
    url: 'order/detail',
    params: {
      orderSn: orderSn
    }
  })
}

export function getFinanceStat(params) {
  return request({
    method: 'get',
    url: 'finance/stat',
    params
  })
}

export function getFinanceOverview(params) {
  return request({
    method: 'get',
    url: 'finance/overview',
    params
  })
}

export function accounting(params) {
  return request({
    method: 'get',
    url: 'order/accounting',
    params
  })
}